package org.elanfox.intellicommunity.common.constant;

import java.math.BigDecimal;

/**
 * 系统常量类
 *
 * @author allan on 2017/11/23.
 */

public class Constant {
    public static final String DEFAULT_TIME_ZONE = "Asia/Shanghai";
    public static final String APP_DES_KEY = "AAA";
    public static final String APP_KEY = "hsystem001";

    public static final String APP_SITE_SECRET_KEY = "f00229ea8eb349e68db729db6e757c67";
    public static String ENCODING_UTF8 = "utf-8";
    public static final String USERNAME_FILED = "username";
    public static final String PASSWORD_FILED = "password";
    public static final String TOKEN_SECRET = "dknAKLJS123";

    public static final String MANAGER_ROOT_DEFAULT_USERNAME = "administrator";
    public static final String MANAGER_ROOT_DEFAULT_PASSWORD = "mutai123!@#";

    public static final String PROFILE_CONTAINER = "container";
    public static final String PROFILE_DEFAULT = "default";
    public static final String PROFILE_REDIS = "redis";
    public static final String PROFILE_DEV = "dev";
    public static final String PROFILE_DEVELOPMENT = "development";
    public static final String PROFILE_TEST = "test";
    public static final String PROFILE_VFS = "vfs";
    public static final String PROFILE_OSS = "oss";
    public static final String PROFILE_PRE = "pre";

    //#region oss
    public static final String OSS_END_POINT = "oss.end-point";
    public static final String OSS_ACCESS_KEY_ID = "oss.access-key.id";
    public static final String OSS_ACCESS_KEY_SECRET = "oss.access-key.secret";
    public static final String OSS_BUCKET_NAME = "oss.bucket-name";
    public static final String OSS_RESOURCE_DOMAIN = "oss.domain";
    //#endregion oss

    //springSecurityContext
    public static final String SPRING_SECURITY_CONTEXT = "SPRING_SECURITY_CONTEXT";


    public static final String DATE_COLUMN_DEFINITION = "datetime";
    public static final String AMOUNT_COLUMN_DEFINITION = "decimal(9,2)";

    public static final String BIG_AMOUNT_COLUMN_DEFINITION = "decimal(12,2)";

    public static final int DEFAULT_PAGE_SIZE = 20;

    public static final int PAGE_SIZE_10 = 10;

    public static final int PAGE_SIZE_5 = 5;

    /**
     * 短信验证码长度
     */
    public static final int VERIFY_CODE_LENGTH = 6;

    /**
     * 验证码有效时间:秒
     */
    public static final int EXPIRE_IN = 600;

    /**
     * 获取短信验证码时间间隔：秒
     */
    public static final int GET_CODE_INTERVAL = 60;


    //region 几个颜色
    public static final String COLOR_DANGER = "color-danger";
    public static final String COLOR_PRIMARY = "color-primary";
    public static final String COLOR_SUCCESS = "color-success";
    public static final String COLOR_WARNING = "color-warning";
    public static final String COLOR_INFO = "color-info";
    //endregion

    public static final String VERIFY_TAG = "verifyTag";


    public static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMAT = "yyyy-MM-dd";

    /**
     * 小数位数
     */
    public static final int SCALE = 2;

    public static final int PRECISION = 12;

    /**
     * 时间戳的有效期时间,默认48小时，单位秒
     */
    public static final long TIMESTAMP_VALID_TIME_LENGTH = 60 * 60 * 48;


    public static final int customerId = 1;


    public static final int initialCapacity = 16;

    /**
     * 奖励_仓单值百分比
     * 目前仓单值75%，25%消费
     */
    public static final BigDecimal REWARD_WAREHOUSE_RATIO = new BigDecimal("0.75");

    public static final String SPLIT="\\|";
}

